package com.example.demo.tx.repository;

import com.example.demo.tx.entity.Citymap;
import com.example.demo.util.BaseRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CitymapRepository extends BaseRepository<Citymap, String> {

    @Query(value = "SELECT * FROM citymap WHERE name LIKE ?1", nativeQuery = true)
    List<Citymap> getSimilarByName(String name);
}